<template>
  <div id="app">
    <!--获取DOM元素-->
    <div class="box" ref="divElement">我是div元素</div>
    <!--获取组件实例-->
    <base-info ref="info"></base-info>
  </div>
</template>
<script>
import baseInfo from "@/components/base-info.vue";

export default {
  name: "App",
  data() {
    return {}
  },
  components: {
    baseInfo
  },
  mounted() {
    console.log(this.$refs.divElement)
    console.log(this.$refs.info)
  }

}
</script>
<style lang="less"></style>
